import React from 'react';
import {Image} from 'react-native';

const avatar = ({uri, size}) => {
  return (
    <Image
      source={{
        uri,
      }}
      style={{
        width: size === 'big' ? 100 : 50,
        height: size === 'big' ? 100 : 50,
        borderRadius: size === 'big' ? 50 : 25,
      }}
    />
  );
};
avatar.defaultProps = {
  size: 'small',
};

export default avatar;
